package xyz.kongbai121.demo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * 文章实体类
 * @author 空白
 */
@Getter
@Setter
@ToString
public class Article {
    @TableId(type = IdType.AUTO)
    private Long id;                            //文章id
    private String head;                        //标题
    private String body;                        //主体
    private String image;                       //图片路径
    private Date updateTime;                    //更新时间
    private Date releaseTime;                   //发布时间
    @TableField(exist = false)
    private Integer commentNum;                     //评论数
    @TableField(exist = false)
    private Integer goodNum;                        //点击量
    private String openid;                      //用户唯一标识
    @TableField(exist = false)
    private User user;                          //用户对象
}
